Improve error messages. (Bug#14808)
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 10 Jul 2013 14:58:26 +0000 (16:58 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 10 Jul 2013 14:58:26 +0000 (16:58 +0200)
commitc781f525816acf38787ed75aa9ac30743f97a733
tree71f3121319899a7ddc46032f6ac1af1d4b72ce4a
parentd40a7d7267d7d5b73e7bb71af40925e298cd9408
Improve error messages.  (Bug#14808)

* net/tramp.el (tramp-current-connection): New defvar, moved from
tramp-sh.el.
(tramp-message-show-progress-reporter-message): Removed, not
needed anymore.
(tramp-error-with-buffer): Show message in minibuffer.  Discard
input before waiting.  Reset connection timestamp.
(with-tramp-progress-reporter): Improve messages.
(tramp-process-actions): Use progress reporter.  Delete process in
case of error.  Improve messages.

* net/tramp-sh.el (tramp-barf-if-no-shell-prompt): Use
condition-case.  Call `tramp-error-with-buffer' with vector and buffer.
(tramp-current-connection): Removed.
(tramp-maybe-open-connection): The car of
`tramp-current-connection' are the first 3 slots of the vector.
lisp/ChangeLog
lisp/net/tramp-sh.el
lisp/net/tramp.el